package com.victor.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.victor.entity.GlComments;
@Mapper
public interface GlCommentsDao {
    int deleteByPrimaryKey(Integer id);
    /**
     * 添加
     * @param record
     * @return
     */
    boolean insertSelective(GlComments record);

    GlComments selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(GlComments record);
    /**
     * 查询评论
     * @param glid
     * @return
     */
	List<GlComments> selCommentsByGlid(@Param("glid")String glid,@Param("uid")String uid);
	/**
	 * 根据glid查询
	 * @param glid
	 * @return
	 */
	List<GlComments> selByGlid(String glid);
}